package test.edu;

import annontain.RequestMapping;
import interceptor.Interceptor;
import interceptor.InterceptorChain;
import view.RedirectViewResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class CHandler implements Interceptor{

    public void handlerqq() {
        new RedirectViewResult("/index2.jsp").execute();
    }

    @Override
    public Object intercept(InterceptorChain chain) {
        System.out.println("Before2222222222");
        Object handle = chain.handle();
        System.out.println("After22222222222");
        return handle;
    }
}
